<template>
<!-- //轮播图vue封装的插件 -->
  <div class="home-banner">
    <XTXLunboBanner  auto-play :lunbotu ='lunbotu' />
  </div>
</template>
<script>
import { ref } from 'vue'
import { lunbotuqinqiu } from '@/Api/index'
export default {
  name: 'LunBoTu',
  setup () {
    const lunbotu = ref([])
    lunbotuqinqiu().then(data => {
      lunbotu.value = data.result
    })
    return { lunbotu }
  }
}
</script>
<style scoped lang="less">
.home-banner {
  height: 500px;
  position: relative;
  z-index: 98
}
// 覆盖样式
.xtx-carousel {
  :deep(.carousel-btn.prev){
    left: 270px;
  }
  :deep(.carousel-indicator) {
    padding-left: 250px;
  }
}
</style>
